FROM gradle:8.7.0-jdk8 as builder

ADD . /goods_manager

RUN cd /goods_manager && gradle build

FROM openjdk:21-rc-jdk-oracle

COPY --from=builder /goods_manager/main/out/main-1.0.0.jar app.jar

EXPOSE 8089

ENTRYPOINT ["java","-jar","app.jar"]
